package cn.fzkj.springcloud.controller;

import cn.fzkj.springcloud.entity.CommonResult;
import cn.fzkj.springcloud.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {

    @Autowired
    private FeignService feignService;

    @RequestMapping(value = "/consumer/feign/get/{id}")
    public CommonResult get(@PathVariable("id") Long id){
        return feignService.getPaymentById(id);
    }


}
